import request from "@/utils/request";

// 查询需求工单列表
export function listBizWorkerList(query) {
  return request({
    url: "/biz/bizWorkerList/list",
    method: "get",
    params: query,
  });
}

// 查询需求工单详细
export function getBizWorkerList(id) {
  return request({
    url: "/biz/bizWorkerList/" + id,
    method: "get",
  });
}

// 新增需求工单
export function addBizWorkerList(data) {
  return request({
    url: "/biz/bizWorkerList",
    method: "post",
    data: data,
  });
}

// 修改需求工单
export function updateBizWorkerList(data) {
  return request({
    url: "/biz/bizWorkerList",
    method: "put",
    data: data,
  });
}

// 删除需求工单
export function delBizWorkerList(id) {
  return request({
    url: "/biz/bizWorkerList/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizWorkerList/findMaxSort",
    method: "get",
  });
}
// 导出需求工单
export function exportBizWorkerList(query) {
  return request({
    url: "/biz/bizWorkerList/export",
    method: "get",
    params: query,
  });
}
